<script setup>
import {ref} from 'vue'
let num = ref(0)
let decr =()=>{
  num.value--
}
let incr =()=>{
  num.value++
}
</script>

<template>
  <div>
    <input type="button" value="-" @click="decr">
    <span>{{ num }}</span>
    <input type="button" value="+" @click="incr">
  </div>
  
</template>

<style scoped>

</style>
